import axios, { AxiosRequestConfig } from "axios";

const service = axios.create({ baseURL: import.meta.env.VITE_BASE_URL });

export async function request(url: string, config?: AxiosRequestConfig) {
  const response = await service.request({ url, ...config });
  const result = response;
  // 你的业务判断逻辑
  return result;
}

export default service;
